package kr.sboard.web;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import kr.sboard.model.Board;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.opensymphony.xwork2.Preparable;

public class BoardMgrAction   extends ActionSupport  implements Preparable,ModelDriven<Board>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private List<File> uploads = new ArrayList<File>();
    private List<String> uploadFileNames = new ArrayList<String>();
    private List<String> uploadContentTypes = new ArrayList<String>();
    
    private Board board;  	

	@Override
	public String execute() {
		return SUCCESS;
	}

	public String list() {
		return SUCCESS;
	}

	public String view() {
		return SUCCESS;
	}

	public String insert() {
		return SUCCESS;
	}

	public String update() {
		return SUCCESS;
	}

	public String delete() {
		return SUCCESS;
	}

	
	
	@Override
	public Board getModel() {
		return board;
	}

	@Override
	public void prepare() throws Exception {
		board = new Board();
		
	}

	public List<File> getUploads() {
		return uploads;
	}

	public void setUploads(List<File> uploads) {
		this.uploads = uploads;
	}

	public List<String> getUploadFileNames() {
		return uploadFileNames;
	}

	public void setUploadFileNames(List<String> uploadFileNames) {
		this.uploadFileNames = uploadFileNames;
	}

	public List<String> getUploadContentTypes() {
		return uploadContentTypes;
	}

	public void setUploadContentTypes(List<String> uploadContentTypes) {
		this.uploadContentTypes = uploadContentTypes;
	}
	
	

}
